package main

import (
	"fmt"
	client "git.oschina.net/solate/go-phpserver-client"
	"git.oschina.net/solate/go-phpserver-client/model"
)


func main() {


	config := &model.Config{
		RpcSecretKey : "769af463a39f077a0340a189e9c1ec28",
		MonitorLogDir : "/tmp/monitor-log",
		TraceLogPath : "/tmp/monitor-log",
		RecvTimeOut : 5,
		Address : model.Address{
			Uri : "192.168.25.9:22005",
			User : "test",
			Secret : "{1BA09530-F9E6-478D-9965-7EB31A59537E}",
		},
	}
	c, err := client.New(config)
	c.SetClass("Example")


	var reply interface{}
	reply, err = c.Call("sayHello", []string{"Dashen 1"})
	if err != nil {
		fmt.Println(err)
	}

	fmt.Println(reply, err)

}

